//---------------------------------------------------------------------
// File: BizUnitTests.cs
// 
// Summary: 
//
// Author: Kevin B. Smith (http://blogs.msdn.com/kevinsmi)
//
//---------------------------------------------------------------------
// Copyright (c) 
//
// THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
// KIND, WHETHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
// PURPOSE.
//---------------------------------------------------------------------

using NUnit.Framework;

namespace BizUnit.Extensions.EntLib.Tests
{
    /// <summary>
    /// </summary>
    [TestFixture]
    public class BizUnitExtensionsEntLibTests
    {
        /// <summary>
        /// The common setup for all tests. 
        /// Use this if you have a common setup xml file
        /// </summary>
        [TestFixtureSetUp]
        public void SetUp()
        {
            BizUnit bizUnit = new BizUnit(@".\..\..\TestCases\Test_Setup.xml", TestGroupPhase.TestGroupSetup);
            bizUnit.RunTest();
        }

        /// <summary>
        /// Common teardown step
        /// </summary>
        [TestFixtureTearDown]
        public void TearDown()
        {
            BizUnit bizUnit = new BizUnit(@".\..\..\TestCases\Test_TearDown.xml", TestGroupPhase.TestGroupTearDown);
            bizUnit.RunTest();
        }

        /// <summary>
        /// This test checks the EntLibDBQueryStep step
        /// </summary>
        [Test]
        public void Test_17_EntLibDBQueryStep()
        {
            BizUnit bizUnit = new BizUnit(@".\..\..\TestCases\Test_17_EntLibDBQueryStep.xml");
            bizUnit.RunTest();
        }

        /// <summary>
        /// This test checks the EntLibDBExecuteNonQueryStep step
        /// </summary> 
        [Test]
        public void Test_18_EntLibDBExecuteNonQueryStep()
        {
            BizUnit bizUnit = new BizUnit(@".\..\..\TestCases\Test_18_EntLibDBExecuteNonQueryStep.xml");
            bizUnit.RunTest();
        }

        /// <summary>
        /// This test checks the EntLibDatabaseRowCount step
        /// </summary> 
        [Test]
        public void Test_19_EntLibDatabaseRowCount()
        {
            BizUnit bizUnit = new BizUnit(@".\..\..\TestCases\Test_19_EntLibDatabaseRowCount.xml");
            bizUnit.RunTest();
        }

        /// <summary>
        /// This test checks the EntLibExportDBToDataSet step
        /// </summary> 
        [Test]
        public void Test_21_EntLibExportDBToDataSet()
        {
            BizUnit bizUnit = new BizUnit(@".\..\..\TestCases\Test_21_EntLibExportDBToDataSet.xml");
            bizUnit.RunTest();
        }

        /// <summary>
        /// This test checks the EntLibExportDBToDataSet step
        /// </summary> 
        [Test]
        public void Test_22_EntLibExportDBToDataSetMultipleTables()
        {
            BizUnit bizUnit = new BizUnit(@".\..\..\TestCases\Test_22_EntLibExportDBToDataSetMultipleTables.xml");
            bizUnit.RunTest();
        }


    }

}
